﻿$(function () {
    $("#log-grid").datagrid({
        url: $.Api("Sys/Log/Grid"),
        nowrap: false, rownumbers: true, border: false,
        fit: true, singleSelect: true,
        idField: "ID", pageSize: 20, pagination: true,
        columns:
        [[
            { field: "Type", title: "操作类型", width: 100, align: "center" },
            { field: "Text", title: "文本内容", width: 280, align: "center" },
            { field: "IPAddress", title: "IP地址", width: 480, align: "center" },
            { field: "InsertTime", title: "执行时间", width: 140, align: "center" }
        ]]
    });
});